import http from '../http';

//表格初始化列表
export function adminPage(params) {
    return http({
        url: "/api/ltd/adminPage",
        method: "GET",
        params: params
    })
}

//表格单条数据
export function adminGet(params) {
    return http({
        url: "/api/ltd/admin",
        method: "GET",
        params: params
    })
}

//表格修改状态
export function adminPutStatus(data) {
    return http({
        url: "/api/ltd/admin",
        method: "POST",
        data: data
    })
}

//表格删除
export function adminDel(data) {
    return http({
        url: "/api/ltd/admin",
        method: "DELETE",
        data: data
    })
}

//dialog 确定新增
export function adminPut(data) {
    return http({
        url: "/api/ltd/admin",
        method: "PUT",
        data: data
    })
}

//dialog 确定修改
export function adminPost(data) {
    return http({
        url: "/api/ltd/admin",
        method: "POST",
        data: data
    })
}



//初始化权限列表
export function adminGroupList(params) {
    return http({
        url: "api/ltd/adminGroupList",
        method: "GET",
        params: params
    })
}

// 测试 thingsBoard 登录
export function genchuan(data) {
    return http({
        url: "/api/auth/login",
        method: "post",
        data: data
    })
}


